<template>
  <div id="Song-sheets">
    <div
      v-for="item in SongSheets"
      :key="item.id"
      class="music-item"
      @click="clickItem(item)"
    >
      <span><van-image :src="item.coverImgUrl" lazy-load /></span>
      <span>{{ item.name }}</span>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    SongSheets: {
      type: Array,
    },
  },
  created() {},
  methods: {
    clickItem(item) {
      this.$router.push({
        path: "music/MusicLst",
        query: { item },
      });
    },
  },
};
</script>

<style lang='less' scoped>
#Song-sheets {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  .music-item {
    width: 30%;
    height: 180px;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    // overflow: hidden;
    // justify-content: center;
    align-items: center;
    span:nth-child(2) {
      width: 90%;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
  }
}
</style>
